package rpc.exception.processor.print;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import rpc.exception.processor.ExceptionPostProcessor;
import rpc.spi.annotation.SPIClass;

@SPIClass
public class PrintExceptionPostProcessor implements ExceptionPostProcessor {
    private final Logger logger = LoggerFactory.getLogger(PrintExceptionPostProcessor.class);
    @Override
    public void postExceptionProcessor(Throwable e) {
        logger.info("程序抛出异常===>>>{}", e);
        logger.info("程序抛出异常===>>>{}", e);
        logger.info("程序抛出异常===>>>{}", e);
        logger.info("程序抛出异常===>>>{}", e);
        logger.info("程序抛出异常===>>>{}", e);
    }
}
